package com.sc.nft.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.dto.DaoSchoolMaterialPageAdminDTO;
import com.sc.nft.entity.dto.DaoSchoolMaterialArticleSaveAdminDTO;
import com.sc.nft.entity.vo.DaoSchoolMaterialArticlePageAdminVO;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 素材表(DaoSchoolMaterial)表服务接口
 *
 * @author makejava
 * @since 2023-03-13 16:22:04
 */
public interface DaoSchoolMaterialService {

    /**
     * 后台获取分页列表
     *
     * @param pageRequest
     * @return
     */
    Page<DaoSchoolMaterialArticlePageAdminVO> pageAdmin(DaoSchoolMaterialPageAdminDTO daoSchoolMaterialPageAdminDTO);

    /**
     * 删除文章
     *
     * @param id
     * @return
     */
    Boolean deleteById(Long id);

    /**
     * 新增素材
     *
     * @param daoSchoolMaterialArticleSaveAdminDTO
     * @return
     */
    Boolean saveAdmin(@RequestBody DaoSchoolMaterialArticleSaveAdminDTO daoSchoolMaterialArticleSaveAdminDTO);

}
